<? if($this->isSuccess):?>
<script>
	parent.ajaxUpload.setImg('<?=$this->imgUrl?>','<?=$this->attachmentid?>');
</script>
<? else:?>
<script>
	parent.parent.alterMsg('<?=$this->error?>');
</script>
<? endif;?>ggg